package com.moyun.common.config.dict.serializer;

import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.JsonDeserializer;

import java.io.IOException;

/**
 * 功能描述: 字典反序列化 <br/>
 * Dict 反序列化
 */
public class DictDeserializer extends JsonDeserializer<Object> {

    /** 字典类型 */
    private final String type;
    /** 分隔符 */
    private final String separator;

    public DictDeserializer(String type, String separator) {
        this.type = type;
        this.separator = separator;
    }


    /**
     * @Author yangboxuan
     * @Description 自定义反序列化逻辑
     * @Date 2022/6/20 21:32
     * @Param [p, ctxt]
     * @return java.lang.Object
     */
    @Override
    public Object deserialize(JsonParser p, DeserializationContext ctxt) throws IOException, JsonProcessingException {
        return null;
    }
}
